using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;

namespace VoxelGame.Character
{
	public class FlyButtonHandler : MonoBehaviour
	{
		[SerializeField]
		private string _flyUp;

		[SerializeField]
		private string _flyDown;

		[SerializeField]
		private string _jumpEnable;

		[SerializeField]
		private GameObject _jumpMode;

		public void JumpEnable()
		{
			_jumpMode.SetActive(value: true);
			base.gameObject.SetActive(value: false);
			CrossPlatformInputManager.SetButtonUp(_jumpEnable);
		}

		public void SetAscendDownState()
		{
			CrossPlatformInputManager.SetButtonDown(_flyUp);
		}

		public void SetAscendUpState()
		{
			CrossPlatformInputManager.SetButtonUp(_flyUp);
		}

		public void SetDescendDownState()
		{
			CrossPlatformInputManager.SetButtonDown(_flyDown);
		}

		public void SetDescendUpState()
		{
			CrossPlatformInputManager.SetButtonUp(_flyDown);
		}

		public void Update()
		{
		}
	}
}
